package com.sgl.blog.service;

import com.sgl.blog.pojo.BlogAccount;

import javax.mail.MessagingException;
import java.io.UnsupportedEncodingException;

public interface MailService {

    /**
     * 发送邮件
     * @param blogAccount 邮箱
     */
    String sendMail(BlogAccount blogAccount) throws MessagingException, UnsupportedEncodingException;

    /**
     *邮箱验证
     * @param account 登录输入的账户信息
     * @return 返回一个账户信息
     */
    Boolean validationEmail(BlogAccount account);
}
